package org.budo.ocr.service.tencent;

import com.qcloud.image.ImageClient;
import com.qcloud.image.request.OcrPlateRequest;

/**
 * @author limingwei
 */
public class TencentQcloudOcrService {
    public static void main(String[] args) throws Throwable {
        String appId = null;
        String secretId = null;
        String secretKey = null;

        ImageClient imageClient = new ImageClient(appId, secretId, secretKey, ImageClient.NEW_DOMAIN_recognition_image_myqcloud_com);

        // 调用车牌识别API示例
        String imageUrl = "http://youtu.qq.com/app/img/experience/char_general/icon_ocr_license_3.jpg";
        String result = imageClient.ocrPlate(new OcrPlateRequest("bucketName", imageUrl));
        System.out.println(result);
    }
}
